<!--description 请假列表页面-->
<!--author 李元坝-->
<!--date 20180611-->
<ion-header>
  <ion-navbar>
    <ion-title>{{ 'LEAVE_TITLE' | translate }}</ion-title>
    <ion-buttons end>
      <button ion-button icon-only (click)="addLeave()">
        <ion-icon name="add"></ion-icon>
      </button>
    </ion-buttons>
  </ion-navbar>
</ion-header>

<ion-content>
  <ion-list>
    <ion-item-sliding *ngFor="let leave of currentLeaves">
      <button ion-item (click)="openLeave(leave)">
        <ion-avatar item-start>
          <img src="../../../assets/img/ica-slidebox-img-3.png" />
        </ion-avatar>
        <h2>{{leave.status_name +"-"+leave.level_id}}</h2>
        <p>{{leave.apply_time+"-"+leave.apply_memo}}</p>

      </button>
      <ion-item-options>
        <button ion-button color="danger" (click)="deleteLeave(leave)">
          {{ 'DELETE_BUTTON' | translate }}
        </button>
      </ion-item-options>
    </ion-item-sliding>
  </ion-list>
</ion-content>
